/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bs.Beans;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Bone
 */
@Entity
@Table(name = "folha_rescisao")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "FolhaRescisao.findAll", query = "SELECT f FROM FolhaRescisao f")})
public class FolhaRescisao implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(nullable = false)
    private Integer id;
    @Column(name = "DATA_DEMISSAO")
    @Temporal(TemporalType.DATE)
    private Date dataDemissao;
    @Column(name = "DATA_PAGAMENTO")
    @Temporal(TemporalType.DATE)
    private Date dataPagamento;
    @Column(length = 100)
    private String motivo;
    @Column(name = "DATA_AVISO_PREVIO")
    @Temporal(TemporalType.DATE)
    private Date dataAvisoPrevio;
    @Column(name = "DIAS_AVISO_PREVIO")
    private Integer diasAvisoPrevio;
    @Column(name = "COMPROVOU_NOVO_EMPREGO")
    private Character comprovouNovoEmprego;
    @Column(name = "DISPENSOU_EMPREGADO")
    private Character dispensouEmpregado;
    // @Max(value=?)  @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
    @Column(name = "PENSAO_ALIMENTICIA", precision = 18, scale = 6)
    private BigDecimal pensaoAlimenticia;
    @Column(name = "PENSAO_ALIMENTICIA_FGTS", precision = 18, scale = 6)
    private BigDecimal pensaoAlimenticiaFgts;
    @Column(name = "FGTS_VALOR_RESCISAO", precision = 18, scale = 6)
    private BigDecimal fgtsValorRescisao;
    @Column(name = "FGTS_SALDO_BANCO", precision = 18, scale = 6)
    private BigDecimal fgtsSaldoBanco;
    @Column(name = "FGTS_COMPLEMENTO_SALDO", precision = 18, scale = 6)
    private BigDecimal fgtsComplementoSaldo;
    @Column(name = "FGTS_CODIGO_AFASTAMENTO", length = 10)
    private String fgtsCodigoAfastamento;
    @Column(name = "FGTS_CODIGO_SAQUE", length = 10)
    private String fgtsCodigoSaque;
    @JoinColumn(name = "ID_COLABORADOR", referencedColumnName = "ID", nullable = false)
    @ManyToOne(optional = false)
    private Colaborador idColaborador;

    public FolhaRescisao() {
    }

    public FolhaRescisao(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getDataDemissao() {
        return dataDemissao;
    }

    public void setDataDemissao(Date dataDemissao) {
        this.dataDemissao = dataDemissao;
    }

    public Date getDataPagamento() {
        return dataPagamento;
    }

    public void setDataPagamento(Date dataPagamento) {
        this.dataPagamento = dataPagamento;
    }

    public String getMotivo() {
        return motivo;
    }

    public void setMotivo(String motivo) {
        this.motivo = motivo;
    }

    public Date getDataAvisoPrevio() {
        return dataAvisoPrevio;
    }

    public void setDataAvisoPrevio(Date dataAvisoPrevio) {
        this.dataAvisoPrevio = dataAvisoPrevio;
    }

    public Integer getDiasAvisoPrevio() {
        return diasAvisoPrevio;
    }

    public void setDiasAvisoPrevio(Integer diasAvisoPrevio) {
        this.diasAvisoPrevio = diasAvisoPrevio;
    }

    public Character getComprovouNovoEmprego() {
        return comprovouNovoEmprego;
    }

    public void setComprovouNovoEmprego(Character comprovouNovoEmprego) {
        this.comprovouNovoEmprego = comprovouNovoEmprego;
    }

    public Character getDispensouEmpregado() {
        return dispensouEmpregado;
    }

    public void setDispensouEmpregado(Character dispensouEmpregado) {
        this.dispensouEmpregado = dispensouEmpregado;
    }

    public BigDecimal getPensaoAlimenticia() {
        return pensaoAlimenticia;
    }

    public void setPensaoAlimenticia(BigDecimal pensaoAlimenticia) {
        this.pensaoAlimenticia = pensaoAlimenticia;
    }

    public BigDecimal getPensaoAlimenticiaFgts() {
        return pensaoAlimenticiaFgts;
    }

    public void setPensaoAlimenticiaFgts(BigDecimal pensaoAlimenticiaFgts) {
        this.pensaoAlimenticiaFgts = pensaoAlimenticiaFgts;
    }

    public BigDecimal getFgtsValorRescisao() {
        return fgtsValorRescisao;
    }

    public void setFgtsValorRescisao(BigDecimal fgtsValorRescisao) {
        this.fgtsValorRescisao = fgtsValorRescisao;
    }

    public BigDecimal getFgtsSaldoBanco() {
        return fgtsSaldoBanco;
    }

    public void setFgtsSaldoBanco(BigDecimal fgtsSaldoBanco) {
        this.fgtsSaldoBanco = fgtsSaldoBanco;
    }

    public BigDecimal getFgtsComplementoSaldo() {
        return fgtsComplementoSaldo;
    }

    public void setFgtsComplementoSaldo(BigDecimal fgtsComplementoSaldo) {
        this.fgtsComplementoSaldo = fgtsComplementoSaldo;
    }

    public String getFgtsCodigoAfastamento() {
        return fgtsCodigoAfastamento;
    }

    public void setFgtsCodigoAfastamento(String fgtsCodigoAfastamento) {
        this.fgtsCodigoAfastamento = fgtsCodigoAfastamento;
    }

    public String getFgtsCodigoSaque() {
        return fgtsCodigoSaque;
    }

    public void setFgtsCodigoSaque(String fgtsCodigoSaque) {
        this.fgtsCodigoSaque = fgtsCodigoSaque;
    }

    public Colaborador getIdColaborador() {
        return idColaborador;
    }

    public void setIdColaborador(Colaborador idColaborador) {
        this.idColaborador = idColaborador;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof FolhaRescisao)) {
            return false;
        }
        FolhaRescisao other = (FolhaRescisao) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.bs.Beans.FolhaRescisao[ id=" + id + " ]";
    }
    
}
